<?php require VIEW_ROOT.'/common/header.php'?>

<script>
$(function() {
	
	$('.toggleSide').toggle(
		function() { 
			window.parent.document.getElementById('main').cols = '0,*'; 
			$(this).find('.arrow').html('&gt;&gt;&gt;&gt;');
		},
		function() { 
			window.parent.document.getElementById('main').cols = '135,*';
			$(this).find('.arrow').html('&lt;&lt;&lt;&lt;');
		}
	);

});

// 隐藏菜单栏
function toggleSide() {
	if(window.parent.document.getElementById('main').cols == '135,*') {
		window.parent.document.getElementById('main').cols = '135,*';
	} else {
		window.parent.document.getElementById('main').cols = '135,*';
	}
}
</script>

<style>
.toggleSide { cursor:pointer; margin-right:10px; }
</style>

<div style="text-align:center;margin:10px 0 0 0;">
	<span class="toggleSide">
		<span class="arrow">&lt;&lt;&lt;&lt;</span>
	<b>控制面板</b>
	[现在时间：<?php echo date('Y/m/d H:i:s');?>]
	</span>
</div>

<?php require VIEW_ROOT.'/common/footer.php'?>